.class public Lcom/example/m6wmr/NoticlistActivity;
.super Landroid/app/Activity;
.source "NoticlistActivity.java"

# interfaces
.implements Lcom/wmr/Lstview/XListView$IXListViewListener;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "HandlerLeak",
        "ShowToast"
    }
.end annotation


# static fields
.field public static OrderlistAct:Lcom/example/m6wmr/NoticlistActivity;


# instance fields
.field private ListViewOrder:Lcom/wmr/Lstview/XListView;

.field private closebtn:Landroid/widget/ImageView;

.field public h:Landroid/os/Handler;

.field private isEdite:Z

.field private is_loading:Z

.field private m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mcontext:Landroid/content/Context;

.field private orderAdapter:Ldata/NoticAdapter;

.field private orderls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/NoticBean;",
            ">;"
        }
    .end annotation
.end field

.field private ordershowtype:Ljava/lang/String;

.field private page:I

.field private temporderls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/NoticBean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 43
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 44
    iput-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->m:Lmyapp/MyApp;

    .line 47
    iput-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->h:Landroid/os/Handler;

    .line 48
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->ordershowtype:Ljava/lang/String;

    .line 50
    const/4 v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/NoticlistActivity;->page:I

    .line 52
    iput-boolean v1, p0, Lcom/example/m6wmr/NoticlistActivity;->isEdite:Z

    .line 58
    iput-boolean v1, p0, Lcom/example/m6wmr/NoticlistActivity;->is_loading:Z

    .line 43
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/NoticlistActivity;)V
    .locals 0

    .prologue
    .line 187
    invoke-direct {p0}, Lcom/example/m6wmr/NoticlistActivity;->onLoad()V

    return-void
.end method

.method static synthetic access$1(Lcom/example/m6wmr/NoticlistActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 46
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/NoticlistActivity;)I
    .locals 1

    .prologue
    .line 50
    iget v0, p0, Lcom/example/m6wmr/NoticlistActivity;->page:I

    return v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/NoticlistActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 54
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->orderls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/NoticlistActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->temporderls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/NoticlistActivity;Ldata/NoticAdapter;)V
    .locals 0

    .prologue
    .line 56
    iput-object p1, p0, Lcom/example/m6wmr/NoticlistActivity;->orderAdapter:Ldata/NoticAdapter;

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6wmr/NoticlistActivity;)Lcom/wmr/Lstview/XListView;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/NoticlistActivity;)Ldata/NoticAdapter;
    .locals 1

    .prologue
    .line 56
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->orderAdapter:Ldata/NoticAdapter;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/NoticlistActivity;I)V
    .locals 0

    .prologue
    .line 50
    iput p1, p0, Lcom/example/m6wmr/NoticlistActivity;->page:I

    return-void
.end method

.method static synthetic access$9(Lcom/example/m6wmr/NoticlistActivity;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 44
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method private onLoad()V
    .locals 2

    .prologue
    .line 188
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopRefresh()V

    .line 189
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopLoadMore()V

    .line 190
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {p0}, Lcom/example/m6wmr/NoticlistActivity;->GetTime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setRefreshTime(Ljava/lang/String;)V

    .line 191
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6wmr/NoticlistActivity;->is_loading:Z

    .line 192
    return-void
.end method


# virtual methods
.method public GetTime()Ljava/lang/String;
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SimpleDateFormat"
        }
    .end annotation

    .prologue
    .line 217
    new-instance v1, Ljava/text/SimpleDateFormat;

    .line 218
    const-string v2, "yyyy-MM-dd    hh:mm:ss"

    .line 217
    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 219
    .local v1, "sDateFormat":Ljava/text/SimpleDateFormat;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 220
    .local v0, "date":Ljava/lang/String;
    return-object v0
.end method

.method public getorderlist()Z
    .locals 1

    .prologue
    .line 266
    new-instance v0, Lcom/example/m6wmr/NoticlistActivity$5;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/NoticlistActivity$5;-><init>(Lcom/example/m6wmr/NoticlistActivity;)V

    .line 330
    invoke-virtual {v0}, Lcom/example/m6wmr/NoticlistActivity$5;->start()V

    .line 331
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 62
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 63
    const v3, 0x7f03002a

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/NoticlistActivity;->setContentView(I)V

    .line 64
    invoke-virtual {p0}, Lcom/example/m6wmr/NoticlistActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    check-cast v3, Lmyapp/MyApp;

    iput-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->m:Lmyapp/MyApp;

    .line 65
    iget-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 66
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 67
    iput-object p0, p0, Lcom/example/m6wmr/NoticlistActivity;->mcontext:Landroid/content/Context;

    .line 68
    sput-object p0, Lcom/example/m6wmr/NoticlistActivity;->OrderlistAct:Lcom/example/m6wmr/NoticlistActivity;

    .line 72
    const/high16 v3, 0x7f0c0000

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/NoticlistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 73
    .local v2, "top":Landroid/widget/LinearLayout;
    iget-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v3}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 74
    const v3, 0x7f070026

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 77
    :cond_0
    const v3, 0x7f0c0057

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/NoticlistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Lcom/wmr/Lstview/XListView;

    iput-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    .line 78
    iget-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 79
    iget-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v3, p0}, Lcom/wmr/Lstview/XListView;->setXListViewListener(Lcom/wmr/Lstview/XListView$IXListViewListener;)V

    .line 81
    const v3, 0x7f0c0001

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/NoticlistActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 82
    .local v1, "closebtn":Landroid/widget/ImageView;
    new-instance v3, Lcom/example/m6wmr/NoticlistActivity$1;

    invoke-direct {v3, p0}, Lcom/example/m6wmr/NoticlistActivity$1;-><init>(Lcom/example/m6wmr/NoticlistActivity;)V

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 88
    new-instance v3, Lcom/example/m6wmr/NoticlistActivity$2;

    invoke-direct {v3, p0}, Lcom/example/m6wmr/NoticlistActivity$2;-><init>(Lcom/example/m6wmr/NoticlistActivity;)V

    iput-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->h:Landroid/os/Handler;

    .line 176
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->orderls:Ljava/util/List;

    .line 177
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->temporderls:Ljava/util/List;

    .line 178
    const-string v3, "MemberLoginActivity"

    const-string v4, "\u521d\u59cb\u5316\u6570\u636e"

    invoke-static {v3, v4}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 179
    new-instance v3, Landroid/os/Handler;

    invoke-direct {v3}, Landroid/os/Handler;-><init>()V

    iput-object v3, p0, Lcom/example/m6wmr/NoticlistActivity;->mHandler:Landroid/os/Handler;

    .line 182
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 337
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 338
    invoke-virtual {p0}, Lcom/example/m6wmr/NoticlistActivity;->finish()V

    .line 341
    :cond_0
    return v1
.end method

.method public onLoadMore()V
    .locals 4

    .prologue
    .line 226
    iget-boolean v0, p0, Lcom/example/m6wmr/NoticlistActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 227
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/m6wmr/NoticlistActivity;->is_loading:Z

    .line 228
    iget v0, p0, Lcom/example/m6wmr/NoticlistActivity;->page:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/NoticlistActivity;->page:I

    .line 230
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/NoticlistActivity$4;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/NoticlistActivity$4;-><init>(Lcom/example/m6wmr/NoticlistActivity;)V

    .line 235
    const-wide/16 v2, 0x1f4

    .line 230
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 238
    :cond_0
    return-void
.end method

.method public onRefresh()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    .line 197
    iget-boolean v0, p0, Lcom/example/m6wmr/NoticlistActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 198
    iput-boolean v1, p0, Lcom/example/m6wmr/NoticlistActivity;->is_loading:Z

    .line 199
    iput v1, p0, Lcom/example/m6wmr/NoticlistActivity;->page:I

    .line 200
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 202
    iget-object v0, p0, Lcom/example/m6wmr/NoticlistActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/NoticlistActivity$3;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/NoticlistActivity$3;-><init>(Lcom/example/m6wmr/NoticlistActivity;)V

    .line 210
    const-wide/16 v2, 0x1f4

    .line 202
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 212
    :cond_0
    return-void
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 256
    invoke-virtual {p0}, Lcom/example/m6wmr/NoticlistActivity;->getorderlist()Z

    .line 257
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 258
    return-void
.end method

.method public waitlogin()V
    .locals 2

    .prologue
    .line 248
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 249
    .local v0, "intent":Landroid/content/Intent;
    const-class v1, Lcom/example/m6wmr/LoginActivity;

    invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 250
    invoke-virtual {p0, v0}, Lcom/example/m6wmr/NoticlistActivity;->startActivity(Landroid/content/Intent;)V

    .line 251
    return-void
.end method
